#ifndef SET_H
#define SET_H

#include <QWidget>
#include <QFile>
#include <QDebug>
#include <QDir>
#include "Code/net/gobang_network.h"
#include "QMessageBox"

namespace Ui {
class set;
}

class set : public QWidget
{
    Q_OBJECT

public:
    explicit set(Gobang_Network *gn, QWidget *parent = nullptr);
    ~set();
    void setSize(int x, int y, int w, int h);
private slots:
    void on_pushButton_clicked();

private:
    Ui::set *ui;
    Gobang_Network *gn;
    QString path = "D:/gobang/net/ip.txt";

    void write_ip(QString ip);
};

#endif // SET_H
